package com.uestc.soft.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class Master {   // 数据库表结构的映射对象
    private Integer master;   // 每一个java属性对应数据库表中的每一个字段名
    private String hoststatus;
    private String divide;
    private Integer weakpassword;

    private String hosttype;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")    // 这里的格式一定要区分大小写
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp lastLoginTime;

    public String getHosttype() {
        return hosttype;
    }

    public Timestamp getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Timestamp lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public void setHosttype(String hosttype) {
        this.hosttype = hosttype;
    }

    public Integer getWeakpassword() {
        return weakpassword;
    }

    public void setWeakpassword(Integer weakpassword) {
        this.weakpassword = weakpassword;
    }

    public String getDivide() {
        return divide;
    }

    public void setDivide(String divide) {
        this.divide = divide;
    }

    public Integer getMaster() {
        return master;
    }

    public String getHoststatus() {
        return hoststatus;
    }

    public void setHoststatus(String hoststatus) {
        this.hoststatus = hoststatus;
    }

    public void setMaster(Integer master) {
        this.master = master;
    }
}